<!DOCTYPE html>

<?php include "res/title.php"; ?>

<html>
<head>
	<title>GoDeal - <?php echo $title; ?></title>
	<meta charset="UTF-8">

	<link href='http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" type="text/css" href="/css/style.css">
	<link rel="icon" type="image/png" href="/favicon.png" />

	<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="/js/client-script.js"></script>
</head>
<body>

	<!-- Navigation -->
	<?php include "res/navigation.php"; ?>

	<div class="wrapper">
		<!-- Categories -->
		<?php include "res/categories.php"; ?>

		<!-- Right content -->
		<?php include "res/right-content.php" ?>

		<div class="container">
			<h1>Наши партнеры</h1>
			<?php $n = 0;
			foreach ($banners as $banner) { $n++; if($n % 3 == 1) { ?>

			<div class="banner-row"> <?php } ?>

				<div class="banner pos<?php echo $n % 2 ?>">
					<img src="<?php echo $banner->img_url ?>">
				</div>
			<?php 
				if($n % 3 == 0) { ?>
			</div> <br>
				<?php }
			}
			if($n % 3 == 1) { ?>
			</div>
			<?php }
				if($n == 0) { ?>
				<h2>Хотите стать нашим партнером? Обращайтесь в Call-center!</h2>
			<?php } ?>
		</div>

		<!-- Footer -->
		<?php include "res/footer.php"; ?>
	</div>

	<!-- Popup Login -->
	<?php include "res/popup-login.php" ?>
</body>
</html>